package org.rbi.context;

import org.rbi.net.IPAccessible;
import org.rbi.net.PortAccessible;

public class NetTransmitterContext extends TransmitterContext implements IPAccessible, PortAccessible {
    /**
     * 目标ip
     */
    private String targetIp;
    /**
     * 端口号
     */
    private Integer port;


    public String getTargetIp() {
        return targetIp;
    }

    public void setTargetIp(String targetIp) {
        this.targetIp = targetIp;
    }



    public void setPort(Integer port) {
        this.port = port;
    }


    @Override
    public String getIP() {
        return targetIp;
    }

    @Override
    public Integer getPort() {
        return this.port;
    }

    public NetTransmitterContext(String targetIp, Integer port) {
        this.targetIp = targetIp;
        this.port = port;
    }
}
